import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  patchJson,
  daleteJson,
} from '../utils/request';

//查询商品分类
export function queryGoodsCategorys(data) {
  return post('/api/goods-service/v1/goods/getGoodstypeList', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/getGoodstypeList', data);
}

//查询总计商品
export function getProductTotalInfo(data) {
  return post('/api/goods-service/v1/goods/queryThreeTotal', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/queryThreeTotal', data);
}

//查询商品
export function getProductList(data) {
  return post('/api/goods-service/v1/goods/queryGoodsInfoList', data);
}
//批量新增
export function batchRenewWarzoneGoods(data) {
  return post('/api/goods-service/v1/goods/batchRenewWarzoneGoods', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/batchRenewWarzoneGoods', data);
}
//批量删除大区商品
export function batchDelWarzoneGoods(data) {
  return post('/api/goods-service/v1/goods/batchDelWarzoneGoods', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/batchDelWarzoneGoods', data);
}
//大区商品
export function queryWarzoneGoodsList(data) {
  return post('/api/goods-service/v1/goods/queryWarGoodsList', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/queryWarGoodsList', data);
}
//下拉大区
export function getWarzoneGoodsList(data) {
  return post('/api/goods-service/v1/goods/getWarzoneGoodsList', data);
}

//修改大区定价
export function updateWarGoodsPrice(data) {
  return post('/api/goods-service/v1/goods/updateWarPrice', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/updateWarPrice', data);
}
//修改大区定时任务
export function updateWarzoneGoods(data) {
  return post('/api/goods-service/v1/goods/updateWarzoneGoods', data);
  //return post('http://127.0.0.1:18080/api/goods-service/v1/goods/updateWarzoneGoods', data);
}
//大区商品
export function queryOperationRecords(data) {
  return post('/api/goods-service/v1/foreignGoods/queryOperationRecords', data);
  // return post('http://127.0.0.1:18080/api/goods-service/v1/foreignGoods/queryOperationRecords', data);
}
